package com.boge.study.design_pattern.observer.jdk;

import lombok.Getter;

import java.util.Observable;

@Getter
public class ConcreteWeatherSubject extends Observable {
	
	private String content;
	
	public void setContent(String content) {
		this.content = content;
		//通知观察者
		this.setChanged();
		this.notifyObservers();
//		this.notifyObservers(content);
	}

}
